package org.jeecg.modules.flowermater.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.math.BigDecimal;


/***
* 统计实体
* @descriptionauthor  
* @author gf
* 2022/9/8 8:50
* 
* @return 
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="统计实体", description="统计实体")
public class FlowerMaterialCount implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId
    @ApiModelProperty(value = "主键")
    private String id;

    /**库房*/
    @Excel(name = "库房", width = 15,dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
    @ApiModelProperty(value = "库房")
    @Dict( dictTable = "flower_storehouse",dicText = "name",dicCode = "code")
    private String storehouse;

    @Excel(name = "成本中心", width = 15 , dicCode = "ch_cost",dicText = "cost_dictText")
    @Dict(dicCode = "ch_cost",dicText = "costText")
    @ApiModelProperty(value = "成本中心")
    private String cost;


    /**物资名称*/
    @Excel(name = "物资名称", width = 15)
    @ApiModelProperty(value = "物资名称")
    private String name;
    /**物资编码*/
    @Excel(name = "物资编码", width = 15)
    @ApiModelProperty(value = "物资编码")
    private String code;
    /**规格*/
    @Excel(name = "规格", width = 15)
    @ApiModelProperty(value = "规格")
    private String specs;
    /**型号*/
    @Excel(name = "型号", width = 15)
    @ApiModelProperty(value = "型号")
    private String modelname;


    /**入库单位*/
    @Excel(name = "入库单位", width = 15)
    @ApiModelProperty(value = "入库单位")
    @Dict(dicCode = "chm_unit" )
    private String unit;

    /**计量单位*/
    @Excel(name = "计量单位", width = 15)
    @ApiModelProperty(value = "计量单位")
    @Dict(dicCode = "chm_unitMeasure" )
    private String unitMeasure;

    @Excel(name = "月初结余数量", width = 15 , type = 4 , groupName = "月初结余", isStatistics=true)
    @ApiModelProperty(value = "数量")
    private BigDecimal befornum;

    @Excel(name = "月初结余单价", width = 15, type = 4 ,  groupName = "月初结余")
    @ApiModelProperty(value = "单价")
    private BigDecimal beforprice;

    @Excel(name = "月初结余金额", width = 15, type = 4 ,  groupName = "月初结余", isStatistics=true)
    @ApiModelProperty(value = "月初结余金额")
    private BigDecimal befortotalprice;

    /**本期入库*/
    @Excel(name = "本期入库数量", width = 15,  type = 4 , groupName = "本期入库", isStatistics=true)
    @ApiModelProperty(value = "本期数量")
    private BigDecimal bennum;

    @Excel(name = "本期入库单价", width = 15, type = 4 ,  groupName = "本期入库")
    @ApiModelProperty(value = "本期单价")
    private BigDecimal benprice;

    @Excel(name = "本期入库金额", width = 15, type = 4 ,  groupName = "本期入库", isStatistics=true)
    @ApiModelProperty(value = "本期金额")
    private BigDecimal bentotalprice;

    /**本期出库*/
    @Excel(name = "本期出库数量", width = 15, type = 4 ,  groupName = "本期出库", isStatistics=true)
    @ApiModelProperty(value = "本期出库数量")
    private BigDecimal benchunum;

    @Excel(name = "本期出库单价", width = 15,  type = 4 , groupName = "本期出库")
    @ApiModelProperty(value = "本期出库单价")
    private BigDecimal benchuprice;

    @Excel(name = "本期出库金额", width = 15,  type = 4 , groupName = "本期出库", isStatistics=true)
    @ApiModelProperty(value = "本期出库金额")
    private BigDecimal benchutotalprice;

    //结余
    @Excel(name = "期末结余数量", width = 15,  type = 4 , groupName = "期末结余", isStatistics=true)
    @ApiModelProperty(value = "期末结余数量")
    private BigDecimal jieyunum;

    @Excel(name = "期末结余单价", width = 15,  type = 4 , groupName = "期末结余" )
    @ApiModelProperty(value = "期末结余单价")
    private BigDecimal jieyuprice;

    @Excel(name = "期末结余金额", width = 15,  type = 4 , groupName = "期末结余", isStatistics=true)
    @ApiModelProperty(value = "期末结余金额")
    private BigDecimal jieyutotalprice;


}
